<template>
  <section id="team" class="section team">
    <div class="container">
      <h2 class="section-title">{{ title }}</h2>
      <div class="team-grid">
        <div class="team-member" v-for="(member, index) in members" :key="index">
          <div class="member-photo"></div>
          <h3 class="member-name">{{ member.name }}</h3>
          <p class="member-role">{{ member.role }}</p>
          <p class="member-bio">{{ member.bio }}</p>
        </div>
      </div>
    </div>
  </section>
</template>

<script>
export default {
  name: 'TeamSection',
  props: {
    title: {
      type: String,
      default: '我们的团队'
    },
    members: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style scoped>
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: #333;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.team-member {
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.member-photo {
  width: 120px;
  height: 120px;
  background-color: #ddd;
  border-radius: 50%;
  margin: 0 auto 15px;
}

.member-name {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.member-role {
  color: #666;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.member-bio {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.5;
}
</style>
